<?xml version="1.0" encoding="utf-8" ?>
<!--

//***************************************************************************
// ***** Script Header *****
//
// Solution:  Solution Accelerator for Business Desktop Deployment
// File:      DeployWiz_Scripts.xml
//
// Purpose:   Deployment Wizard 
//
// Microsoft Solution Version:  4.0.175
// Microsoft Script Version:    4.0.175
// Customer Build Version:      1.0.0
// Customer Script Version:     1.0.0
//
// Microsoft History:
// 2.6.0    KeithGa  03/14/2006  Ported version, new script header
// 3.0.2    MTN      03/30/2006  Re-added the "DeploymentType" pane
// 3.0.24   MTN      05/20/2006  Added new pane for new computer scenario
//                               to ask for state location
// 3.0.78   MTN      10/11/2006  Removed "SelectImage" side effects
// 3.0.123  MTN      12/01/2006  Changed "incorrectly configured" message
// 3.0.128  MTN      12/06/2006  Don't display BitLocker screen if preparing to capture
// 3.0.140  MTN      01/15/2007  Skip BitLocker detail screen if preparing to capture
// 4.0.175  MTN      05/04/2007  Adjust to use task sequences instead of builds
// 4.0.185  MTN      05/17/2007  Don't display user state pane for servers
// 4.0.249  TJ       07/25/2007  Added Validation for Image Capture
// 4.0.302  TPM      08/08/2007  Modified Replace scenario based on replace template
//
// Customer History:
//
// ***** End Header *****
//***************************************************************************

-->

<Wizard>
	<Global>

		<CustomStatement><![CDATA[ document.title =  "Windows Deployment Wizard" ]]> </CustomStatement>
		<CustomStatement><![CDATA[ window.resizeTo 700,500 ]]> </CustomStatement>

		<Initialization>DeployWiz_Initialization.vbs</Initialization>
		<Validation>DeployWiz_Validation.vbs</Validation>

	</Global>
  
	<!-- ************************************************************** -->
	<!-- ************************************************************** -->

	<Pane id="DeployRoot">

		<Condition><![CDATA[Left(ucase(Property("DeployRoot")),3)="X:\" or Property("DeployRoot") = "" ]]></Condition>
		<Initialization><![CDATA[ InitializeDeployRoot ]]> </Initialization>
		<Validation><![CDATA[ ValidateDeployRoot ]]> </Validation>

		<Body>
		<![CDATA[
          
           <!-- Use the H1 Style for titles at the top of the page -->
           <H1>Welcome to the Windows Deployment Wizard!<H1>
           
           <p>Before this wizard can continue, it will need to know the path of a Deployment Share.</p>
           <span id=DisplayLocal>
              <table width=95% >
                <tr >
                  <td align=right>
                    <input type=radio name="ConnectionType" id="RadioCT1" checked accesskey=L language=vbscript  onclick=DisplayValidateDeployRoot>
                  </td>
                  <td>
                    <label class=Larger for=RadioCT1 language=vbscript >Select my deployment share based on my site <u class=larger>L</u>ocale:</label>
                  </td>
                </tr>
                <tr>
                  <td width=0px>
                  </td>
                  <td>
                      <u>S</u>ite:<br/>
                      <select id=SiteList class=WideEdit datasrc="#Sites" datafld="Description" accesskey=s onchange=ChangeServerFromSite>
                          <option value="" >Select a Site:</option> 
                      </select>
                      <div><label class=ErrMsg for=SiteList>* Required (MISSING)</label>&nbsp;</div>
                  </td>
                </tr>
                <tr>
                  <td colspan=2> &nbsp;</td>
                </tr>
              <tr>
                <td align=right>
                  <input type=radio name="ConnectionType" id="RadioCT2" accesskey=M language=vbscript  onclick=DisplayValidateDeployRoot>
                </td>
                <td>
                  <label class=Larger for=RadioCT2 language=vbscript ><u class=larger>M</u>anually specify the server location:</label>
                </td>
              </tr>
              </table>
            </span>
            
            <table width=95%>
              <tr>
                <td width=0px>
                </td>
                <td>
                  <span>Deployment Share: (format: "\\Server\share"   or   "\\server" </span>
                  <input type=text id=DeployRoot name=DeployRoot class=wideedit /> 
                  <div><label class=ErrMsg for=DeployRoot>* Required (MISSING)</label>&nbsp;</div>
                </td>
              </tr>
              
<!--              
              <tr>
                <td colspan=2> &nbsp;</td>
              </tr>

              <tr>
                <td align=right>
                  <input type=checkbox name=DisplayCustomWizard id=UseCustom accesskey=A onchange=DisplayValidateDeployRoot onpropertychange=DisplayValidateDeployRoot />
                </td>
                <td>
                  <label for=UseCustom> Display <u>A</u>dvanced settings during wizard.</label>   
                </td>
              </tr>
-->              
            </table>

		]]>
      
		</Body>

	</Pane>

  	
	<Pane id="SelectTaskSequence">
		<Condition><![CDATA[UCASE(Property("SkipTaskSequence"))<>"YES" ]]></Condition>
		<Body>
           <![CDATA[
      <H1>Select a task sequence to execute on this computer.</H1>
      <p>The following task sequences are available.</p>
      
      <div class=DynamicListBox style="height: expression( GetDynamicListBoxSize(this) ); ">    
      <table id="TSList" datasrc="#tasksequences" width="100%" border=0 cellSpacing=0 language=vbscript onreadystatechange=ReadyInitializeTSList>
         <tr valign=top class="DynamicListBoxRow"
             onmouseover="javascript:this.className = 'DynamicListBoxRow-over';" 
             onmouseout="javascript:this.className = 'DynamicListBoxRow';" >
            <td class=DynamicListBoxElement width="0px">
               <input type=radio name=SelectedItem language=vbscript onPropertyChange="AppItemChange" />
               <input type=hidden Name=TSGuid disabled datafld="guid" />
            </td>
            <td language=vbscript onclick="ClickChildCheckBox" class=DynamicListBoxElement width="100%">
               <div><Label datafld="Name" class="Larger" ></Label></div>
               <div><Label datafld="Comments" dataformatas="HTML"><label class=errmsg style="display: inline;" >No task sequences are available (TaskSequences.xml does not exist, is empty, or is inaccessible)</label></Label></div>            
            </td>
      </table>
      </div>

      <input type=hidden id=TaskSequenceID  name=TaskSequenceID>
      
      <xml id="tasksequences"></xml>

      ]]>
		</Body>
		<Initialization><![CDATA[InitializeTSList]]></Initialization>
		<Validation><![CDATA[ValidateTSList]]></Validation>
	</Pane>


	<Pane id="ProductKey_Vista">
		<Condition><![CDATA[UCASE(Property("SkipProductKey"))<>"YES" and Property("DeploymentType")<>"REPLACE" and Left(Property("ImageBuild"), 1) = "6" ]]></Condition>
		<Body>
		<![CDATA[
		<H1>Specify the product key needed to install this operating system.</H1>
		<table>
			<tr>
				<td>
					<input type=radio name="SelectKey" id="PKRadio1" checked language=vbscript onclick=ValidateProductKey AccessKey=O>
				</td> 
				<td>
					<Label class="Larger" for=PKRadio1 language=vbscript >N<u class=larger>o</u> product key is required.</Label>
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<div>The operating system being deployed does not require a product key because it will be activated using the Key Management Service.</div>
				</td>
			</tr>
    
			<tr><td colspan=2>&nbsp;</td></tr>
    
			<tr>
				<td>
					<input type=radio name="SelectKey" id="PKRadio2" language=vbscript onclick=ValidateProductKey AccessKey=M>
				</td>
				<td>
					<Label class="Larger" for=PKRadio2 language=vbscript >Activate the machine with a <u class=larger>m</u>ultiple activation key (MAK).</Label>
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<div>The operating system being deployed will not be able to activate via the Key Management Service, so a multiple activation key will activate
					the computer over the internet.</div>
					<br>
					<div>Multiple <u>a</u>ctivation key: <label class=ErrMsg id=OverrideBlank>* Required (MISSING)</label><label class=ErrMsg id=OverrideInvalid>* Invalid product key</label></div>
					<input type=text id="locOverrideProductKey" size=50 disabled language=vbscript onpropertychange=ValidateProductKey onblur=AssignProductKey AccessKey=A> 
				</td>
			</tr>

			<tr><td colspan=2>&nbsp;</td></tr>

			<tr>
				<td>
					<input type=radio name="SelectKey" id="PKRadio3" language=vbscript onclick=ValidateProductKey AccessKey=U> 
				</td>
				<td>
					<Label class="Larger" for=PKRadio3 language=vbscript ><u class=larger>U</u>se a specific product key.</Label>
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<div>This computer requires a specific license key for installation or retail activation.</div>
					<br>
					<div>P<u>r</u>oduct key: <label class=ErrMsg id=PKBlank>* Required (MISSING)</label><label class=ErrMsg id=PKInvalid>* Invalid product key</label></div>
					<input type=text id="locProductKey" size=50 disabled language=vbscript onpropertychange=ValidateProductKey onblur=AssignProductKey AccessKey=R> 
				</td>
			</tr>

		</table>

		<input type=hidden id=pKey name=ProductKey>
		<input type=hidden id=oKey name=OverrideProductKey>

		]]>
		</Body>
		<Initialization><![CDATA[InitializeProductKey]]></Initialization>
		<Validation><![CDATA[ValidateProductKey]]></Validation>
	</Pane>


	<Pane id="DeploymentType">
		<Condition><![CDATA[UCase(Property("SkipDeploymentType"))<>"YES" and Property("DeploymentType")<>"NEWCOMPUTER" and Property("OSGUID")<>"" or Property("DeploymentType")=""]]></Condition>
        <Initialization><![CDATA[ InitializeDeploymentType ]]> </Initialization>
        <Validation><![CDATA[ ValidateDeploymentType ]]> </Validation>
        <Body>
      <![CDATA[
<H1>Choose a migration type.</H1>
<table>
	<tr>
		<td>
			<input type=radio name="DeploymentType" id="DTRadio1" checked value="REFRESH" accesskey=f language=vbscript >
		</td>
		<td>
    		<label class=Larger for=DTRadio1 language=vbscript >Re<u class=larger>f</u>resh this computer.</label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<p>Save all configuration information, remove the existing operating system, and install a new operating system.</p>
    	</td>
	</tr>
	<tr><td colspan=2>&nbsp;</td></tr>
	<tr>
		<td>
			<input type=radio name="DeploymentType" id="DTRadio2" value="UPGRADE" accesskey=u language=vbscript >
		</td>
		<td>
	    	<label class=Larger for=DTRadio2 language=vbscript ><u class=larger>U</u>pgrade this computer.</label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<p>Preserve existing applications and configuration information, upgrading the existing operating system.</p>
    	</td>
	</tr>
	<tr><td colspan=2>&nbsp;</td></tr>
</table>

			]]>
		</Body>

  </Pane>


	<Pane id="ComputerName">
		<Condition><![CDATA[UCase(Property("SkipComputerName"))<>"YES" and Property("DeploymentType")<>"REPLACE" and Property("DeploymentType")<>"UPGRADE" and Property("DeploymentType")<>"CUSTOM" ]]></Condition>
		<Body>
		<![CDATA[
            
    <H1>Configure the computer name.</H1>
    <span style="width: 95%;">
    
        <p>Choose a name for your PC that will help you identify it on your network, if you have one. Each computer on your network must have a unique name.</p>
        <P>You can name your computer based on its owner or location, for example "DAVID" or "XYZLAB123." In order 
        for your computer to appear on a network, its name cannot be longer than 15 characters or contain any 
        spaces or characters aside from the numbers 0-9, the letters A-Z and a-z, and hyphens.</P>
        
        <p><span class="Larger">Computer n<u class=larger>a</u>me:</span>
        <input type=text id="ComputerName" name=ComputerName size=15 language=vbscript onpropertychange=ValidateComputerName AccessKey=A /></p>

        <p>&nbsp;
          <label class=ErrMsg for=ComputerName>* Required (MISSING)</label>
          <label class=ErrMsg id=InvalidChar>Letters, Numbers & Dashes only!</label>
          <label class=ErrMsg id=TooLong>Maximum of 15 characters!</label>
        </p>
        
        <!--  Computer Description Format -->
        <!--
        
        <p>You can also give your computer a friendly description. Unlike the computer 
        name, the computer description may contain spaces and other special characters. "Frank Kim's Test machine" and 
        "E-Mail Server #23, Miami Regional Office, Rm. 2305." are examples of computer descriptions.</p>
        
        <p><span class="Larger">Computer <u class=larger>d</u>escription:</span><br/>
        <input type=text id="Description" name=ComputerDescription size=60 language=vbscript onpropertychange=ValidateComputerName AccessKey=d /></p>
        -->
        
    </span>

		]]>
		</Body>
		<Validation><![CDATA[ValidateComputerName]]></Validation>
	</Pane>

	<Pane id="DomainMembership">
		<Condition><![CDATA[ PrePopulateDomainMembership ]]></Condition>
		<Condition><![CDATA[UCase(Property("SkipDomainMembership"))<>"YES" and Property("DeploymentType")<>"REPLACE" and Property("DeploymentType")<>"UPGRADE" and Property("DeploymentType")<>"CUSTOM" ]]></Condition>
		<Condition><![CDATA[ SkipDomainMembershipIfUpgrade ]]></Condition>		
		<Body>
		<![CDATA[
<H1>Join the computer to a domain or workgroup.</H1>
<span id="DisplayCaptureWarning" >Note: Workgroup membership must be selected if an image capture is desired.<P></span>
<table width=90% >
	<tr>
		<td width=5%>
			<input type=radio name="JDRadio" id="JDRadio1" checked language=vbscript onclick=ValidateDomainMembership accesskey=d>
		</td>
		<td colspan="3">
		    <label class=Larger for=JDRadio1>Join a <u class=larger>d</u>omain.</label>
		</td>
	</tr>
	<tr>
		<td colspan=2></td>
		<td width=25%>
			Dom<u>a</u>in:
		</td>
		<td>
			<input type=text id=joindomain name=JoinDomain size=37 language=vbscript onpropertychange=ValidateDomainMembership accesskey=a>
			<label class=ErrMsg for=joindomain>* Required (MISSING)</label>
		</td>
	</tr>
	      
	<tr><td colspan="4">&nbsp;</td></tr>

	<tr>
		<td colspan=2></td>
		<td colspan=2>
			<p>Credentials to use to join the domain:</p>
		</td>
	</tr>

	<tr>
		<td colspan="2"></td>
		<td>
			User Na<u>m</u>e:
		</td>
		<td>
			<input type=text id=username Name="DomainAdmin" size=30 language=vbscript onpropertychange=ValidateDomainMembership accesskey=m>
			<label class=ErrMsg for=username>* Required (MISSING)</label>
		</td>
	</tr>
	<tr>
		<td colspan="2"></td>
	        <td>
			<u>P</u>assword:
		</td>
		<td>
			<input type=password id=password Name="DomainAdminPassword" size=30 language=vbscript onpropertychange=ValidateDomainMembership AccessKey=p>
			<label class=ErrMsg for=password>* Required (MISSING)</label>
		</td>
	</tr>
	<tr>
		<td colspan="2"></td>
	        <td>
			Doma<u>i</u>n:
		</td>
		<td>
			<input type=text Name="DomainAdminDomain" id=userdomain size=30 language=vbscript onpropertychange=ValidateDomainMembership AccessKey=i>
			<label class=ErrMsg for=userdomain>* Required (MISSING)</label>
		</td>
	</tr>

	<tr><td colspan="4"><label class=ErrMsg id=InvalidCredentials>* Invalid credentials</label></td></tr>

	<tr>
		<td colspan=2></td>
		<td>
			<u>O</u>rganizational Unit:
		</td>
		<td>
			<input type=text id=MachineObjectOU name=MachineObjectOU style="width: 75%;" language=vbscript onpropertychange=ValidateDomainMembership accesskey=O>
			<input type="button" id=MachineObjectOUOptionalBtn hidefocus="1" value="&#9660;" style="height:23; width:16; font-family: helvetica; font-size: 7pt; display: none;" onclick="JavaScript:HideUnHideComboBox();"> (Optional) <Br>
               
			<div id="PopupBox" style="position:absolute; display:none; z-index:10000; width: 75%;" >

				<select size="6" id="MachineObjectOUOptional" style="width: 100%; border-style: none"
				 onchange="JavaScript:MachineObjectOU.value = this.value;"
				 onclick="javascript:HideUnHideComboBox();">
				</select>

			</div>
            
		</td>
	</tr>
    
    </div>    
	      
	<tr><td colspan="4">&nbsp;</td></tr>

	<tr>
		<td>
			<input type=radio name="JDRadio" id="JDRadio2" language=vbscript onclick=ValidateDomainMembership accesskey=W>
		</td>
		<td colspan="3">
		    <label class=Larger for=JDRadio2>Join a <u class=larger>w</u>orkgroup.</label>
		</td>
	</tr>
	<tr>
		<td colspan="2"></td>
		<td>
			<p>Wor<u>k</u>group:
		</td>
		<td>
			<input type=text id="Workgroup" name=JoinWorkgroup size=37 onpropertychange=javascript:ValidateDomainMembership();  AccessKey=k>
			<label class=ErrMsg for=Workgroup>* Required (MISSING)</label>
		</td>
	</tr>
</table>     
		]]>
		</Body>

		<Initialization><![CDATA[InitializeDomainMembership]]></Initialization>
		<Validation><![CDATA[ValidateDomainMembership]]></Validation>
	</Pane>


	<Pane id="UserData">
		<Condition><![CDATA[(Property("DeploymentType") = "REFRESH" or Property("DeploymentType") = "REPLACE") and UCase(Property("SkipUserData"))<>"YES" and Property("DeployTemplate")<>"SERVER"]]></Condition>
		<Body>
         <![CDATA[
<H1>Specify where to save your data and settings.</H1>
<table>
	<tr>
		<td>
			<input type=radio name="UserDataLocation" id="UDRadio1" checked value="AUTO" language=vbscript onclick=ValidateUserDataLocation  AccessKey=A>
		</td>
		<td>
			<Label class="Larger" for=UDRadio1 language=vbscript ><u class=larger>A</u>utomatically determine the location.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div>Let the system determine the best location based on available disk space.</div>
			<br>
			<input type=checkbox id="AllowLocal" checked onclick="javascript:UDRadio1.value= this.checked?'AUTO':'NETWORK';" AccessKey=L>
			<Label for=AllowLocal>Allow data and settings to be stored <u>l</u>ocally when possible.</Label>
		</td>
	</tr>
    
	<tr><td colspan=2>&nbsp;</td></tr>

	<tr>
		<td>
			<input type=radio name="UserDataLocation" id="UDRadio2" Value="SpecifyLocation" language=vbscript onclick=ValidateUserDataLocation  AccessKey=S>
		</td>
		<td>
			<Label class="Larger" for=UDRadio2 language=vbscript ><u class=larger>S</u>pecify a location.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div>Save all configuration information for later restoration.</div>
			<br>
			<div>L<u>o</u>cation:  <label class=ErrMsg for=DataPath>* Required (MISSING)</label><label class=ErrMsg id=InvalidPath>* Invalid local path!</label></div>
			<input type=text id="DataPath" size=65 disabled language=vbscript onpropertychange=ValidateUserDataLocation AccessKey=O> 
			<input type="button" id="DataPathBrowse" onclick="javascript:DataPath.value = BrowseForFolder(DataPath.value);" Value="Browse" disabled />
		</td>
	</tr>

	<tr><td colspan=2>&nbsp;</td></tr>
    
	<tr>
		<td>
			<input type=radio name="UserDataLocation" id="UDRadio3" value="NONE" language=vbscript onclick=ValidateUserDataLocation  AccessKey=V>
		</td>
		<td>
			<Label class="Larger" for=UDRadio3 language=vbscript >Do not sa<u class=larger>v</u>e data and settings.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<p>All user data and settings will be lost.</p>
		</td>
	</tr>
</table>
		]]>
		</Body>
		<Initialization><![CDATA[InitializeUserDataLocation]]></Initialization>
		<Validation><![CDATA[ValidateUserDataLocation]]></Validation>
	</Pane>


	<Pane id="UserDataRestore">
		<Condition><![CDATA[UCase(Property("SkipUserData"))<>"YES" and Property("DeploymentType")="NEWCOMPUTER" and Property("DeployTemplate")<>"SERVER" and Property("DeploymentType")<>"CUSTOM"]]></Condition>
		<Body>
         <![CDATA[
<H1>Specify whether to restore user data.</H1>
<table>

	<tr>
		<td>
			<input type=radio name="UserDataLocation" id="UDRadio1" checked value="NONE" language=vbscript onclick=ValidateUserDataRestoreLocation  AccessKey=r>
		</td>
		<td>
			<Label class="Larger" for=UDRadio1 language=vbscript >Do not <u class=larger>r</u>estore user data and settings.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<p>This is not a replacement computer, so there are no user data and settings to restore.</p>
		</td>
	</tr>

    
	<tr><td colspan=2>&nbsp;</td></tr>
    
	<tr>
		<td>
			<input type=radio name="UserDataLocation" id="UDRadio2" Value="NETWORK" language=vbscript onclick=ValidateUserDataRestoreLocation  AccessKey=S>
		</td>
		<td>
			<Label class="Larger" for=UDRadio2 language=vbscript ><u class=larger>S</u>pecify a location.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div>Restore user data and settings from a network location created from a different machine.</div>
			<br>
			<div>L<u>o</u>cation:</div>
			<input type=text id="StatePath" name="StatePath" size=65 disabled language=vbscript AccessKey=O> 
			<input type="button" id="StatePathBrowse" style="display: none;" onclick="javascript:StatePath.value = BrowseForFolder(StatePath.value);" Value="Browse" disabled /><br/>(Full network path to previously saved USMT data files).<br/>
			<div><label class=ErrMsg for=StatePath>* Required (MISSING)</label>  <label class=ErrMsg id=InvalidPath>* Invalid path!</label><br/></div>
		</td>
	</tr>
    
</table>
		]]>
		</Body>
 		<Initialization><![CDATA[InitializeUserDataRestoreLocation]]></Initialization>
 		<Validation><![CDATA[ValidateUserDataRestoreLocation]]></Validation>
	</Pane>


	<Pane id="ComputerBackup">
		<Condition><![CDATA[(Property("DeploymentType") = "REFRESH" or Property("DeploymentType") = "REPLACE") and UCase(Property("SkipComputerBackup"))<>"YES"]]></Condition>
		<Body>
  <![CDATA[
<H1>Specify where to save a complete computer backup.</H1>
<table>
	<tr>
		<td>
			<input type=radio name="ComputerBackupLocation" id="CBRadio1" value="AUTO" language=vbscript onclick=ValidateComputerBackupLocation  AccessKey=A>
		</td> 
		<td>
			<Label class="Larger" for=CBRadio1 language=vbscript ><u class=larger>A</u>utomatically determine the location.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div>Let the system determine the best location based on available disk space.</div>
			<br>
			<input type=checkbox id="AllowLocal" checked language=vbscript onclick="javascript:CBRadio1.value= this.checked?'AUTO':'NETWORK';" AccessKey=L>
			<Label for=AllowLocal>Allow the computer backup to be stored <u>l</u>ocally when possible.</Label>
		</td>
	</tr>

	<tr><td colspan=2>&nbsp;</td></tr>
    
	<tr>
		<td>
			<input type=radio name="ComputerBackupLocation" id="CBRadio2" Value="SpecifyLocation" language=vbscript onclick=ValidateComputerBackupLocation  AccessKey=S> 
		</td>
		<td>
			<Label class="Larger" for=CBRadio2 language=vbscript ><u class=larger>S</u>pecify a location.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div>Save the computer backup to the specified location.</div>
			<br>
			<div>L<u>o</u>cation: <label class=ErrMsg for=DataPath>* Required (MISSING)</label></div>
			<input type=text id="DataPath" size=65 disabled language=vbscript onpropertychange=ValidateComputerBackupLocation AccessKey=O> 
			<input type="button" id="DataPathBrowse" language=vbscript onclick="javascript:DataPath.value = BrowseForFolder(DataPath.value);" Value="Browse" disabled />
		</td>
	</tr>

	<tr><td colspan=2>&nbsp;</td></tr>
    
	<tr>
		<td>
			<input type=radio name="ComputerBackupLocation" id="CBRadio3" checked value="NONE" language=vbscript onclick=ValidateComputerBackupLocation  AccessKey=K>
		</td>
		<td>
			<Label class="Larger" for=CBRadio3 language=vbscript >Do not bac<u class=larger>k</u> up the existing computer.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<p>No backup should be performed.</p>
		</td>
	</tr>
</table>
		]]>
		</Body>
		<Initialization><![CDATA[InitializeComputerBackupLocation]]></Initialization>
		<Validation><![CDATA[ValidateComputerBackupLocation]]></Validation>
	</Pane>



	<Pane id="ProductKey_NT">
		<Condition><![CDATA[UCASE(Property("SkipProductKey"))<>"YES" and Property("DeploymentType")<>"REPLACE" and Property("DeploymentType")<>"CUSTOM" and Left(Property("ImageBuild"), 1) < "6" ]]></Condition>
		<Body>
		<![CDATA[
		<H1>Specify the product key needed to install this operating system.</H1>

		<p>This computer requires a specific license key for installation or retail activation.</p>
		<div>P<u>r</u>oduct key: <label class=ErrMsg id=PKBlank>* Required (MISSING)</label><label class=ErrMsg id=PKInvalid>* Invalid product key</label></div>
		<input type=text id="locProductKey" size=50 disabled language=vbscript onpropertychange=ValidateProductKey onblur=AssignProductKey AccessKey=R> 

		<input type=hidden id=pKey name=ProductKey>
		<input type=hidden id=oKey name=OverrideProductKey>

		]]>
		</Body>
		<Initialization><![CDATA[InitializeProductKey]]></Initialization>
		<Validation><![CDATA[ValidateProductKey]]></Validation>
	</Pane>


	<Pane id="SelectLanguagePack_Ultimate">

		<Condition><![CDATA[  ucase(Property("SkipPackageDisplay")) <> "YES" and Property("DeploymentType")<>"REPLACE" and Property("DeploymentType")<>"CUSTOM" and Left(Property("ImageBuild"), 1) = "6" ]]> </Condition>
		<Condition><![CDATA[  IsInstallationUltimateEnterprise  ]]> </Condition>
		<Condition><![CDATA[  CanDisplayPackageDialogBox  ]]> </Condition>
		<Initialization><![CDATA[ LanguagePack_Initialization  ]]> </Initialization>
		<Validation><![CDATA[  LanguagePack_Validation ]]></Validation>

		<!-- All Content here is displayed to the body of the window. -->
		<Body>
		<![CDATA[
          
           <!-- Use the H1 Style for titles at the top of the page -->
           <H1>Packages<H1>           
          
      <div class=DynamicListBox style="height: expression( GetDynamicListBoxSize(this) );">       
      <table id="ImageList" datasrc="#packages" width="100%" border=0 cellSpacing=0 language=vbscript onreadystatechange=ReadyInitializePackageList>
         <tr valign=top class="DynamicListBoxRow"
             onmouseover="javascript:this.className = 'DynamicListBoxRow-over';" 
             onmouseout="javascript:this.className = 'DynamicListBoxRow';" >
            <td class=DynamicListBoxElement name=LanguageChkBox language=vbscript onclick="ClickChildCheckBox" width=0px >
               <input type=CheckBox name=SelectedItem language=vbscript onPropertyChange="PackageItemChange" >
               <input type=hidden Name=LanguagePacks disabled datafld="guid" />
            </td>            
            <td language=vbscript onclick="ClickChildCheckBox" class=DynamicListBoxElement  >
               <span datafld="SNATIVELANGNAME" dataformatas="HTML"></Span>
            </td>            
            <td language=vbscript onclick="ClickChildCheckBox" class=DynamicListBoxElement width=30% align=center>
               <Label datafld="Language" ></Label>&nbsp;&nbsp;&nbsp;<span datafld="SENGLANGUAGE" dataformatas="HTML"></Span>
            </td>
            <td language=vbscript onclick="ClickChildCheckBox" class=DynamicListBoxElement  width=15%>
               <Label datafld="ExtraInfo" dataformatas="HTML"> &nbsp;</Label>
            </td>
          </tr>
      </table>
      </div>
      <div><label class=ErrMsg id=SelectLangPack>* Required (MISSING)</label></div>
      
      <xml id="packages"></xml>
           
      <!-- We require at least one Disabled input box of the name Applications to ensure the values are picked up as an array. -->
      <input type=hidden Name=LanguagePacks disabled value="" />   

        ]]>

		</Body>
	</Pane>

	<Pane id="SelectLanguagePack_Simple">

		<Condition><![CDATA[ ucase(Property("SkipPackageDisplay")) <> "YES" and Property("DeploymentType")<>"REPLACE" and Property("DeploymentType")<>"CUSTOM" and Left(Property("ImageBuild"), 1) = "6" ]]> </Condition>
		<Condition><![CDATA[  not IsInstallationUltimateEnterprise  ]]> </Condition>
		<Condition><![CDATA[  CanDisplayPackageDialogBox ]]> </Condition>
		<Initialization><![CDATA[ LanguagePack_Initialization  ]]> </Initialization>
		<Validation><![CDATA[  LanguagePack_Validation ]]></Validation>

		<Body>
		<![CDATA[
          
           <!-- Use the H1 Style for titles at the top of the page -->
           <H1>Packages<H1>           
           
      <div class=DynamicListBox style="height: expression( GetDynamicListBoxSize(this) );">   
      <table id="ImageList" datasrc="#packages" width="100%" border=0 cellSpacing=0 language=vbscript onreadystatechange=ReadyInitializePackageList>
         <tr valign=top class="DynamicListBoxRow"
             onmouseover="javascript:this.className = 'DynamicListBoxRow-over';" 
             onmouseout="javascript:this.className = 'DynamicListBoxRow';" >
            <td class=DynamicListBoxElement name=LanguageChkBox language=vbscript onclick="ClickChildCheckBox" width=0px >
               <input type=Radio name=SelectedItem language=vbscript onPropertyChange="PackageItemChange" >
               <input type=hidden Name=LanguagePacks disabled datafld="guid" />
            </td>            
            <td language=vbscript onclick="ClickChildCheckBox" class=DynamicListBoxElement  >
               <span datafld="SNATIVELANGNAME" dataformatas="HTML"></Span>
            </td>            
            <td language=vbscript onclick="ClickChildCheckBox" class=DynamicListBoxElement width=30% align=center>
               <Label datafld="Language" ></Label>&nbsp;&nbsp;&nbsp;<span datafld="SENGLANGUAGE" dataformatas="HTML"></Span>
            </td>
            <td language=vbscript onclick="ClickChildCheckBox" class=DynamicListBoxElement  width=15%>
               <Label datafld="ExtraInfo" dataformatas="HTML"> &nbsp;</Label>
            </td>
          </tr>
      </table>
      </div>
      <div><label class=ErrMsg id=SelectLangPack>* Required (MISSING)</label></div>
      
      <xml id="packages"></xml>
           
      <!-- We require at least one Disabled input box of the name Applications to ensure the values are picked up as an array. -->
      <input type=hidden Name=LanguagePacks disabled value="" />   

        ]]>

		</Body>
	</Pane>


	<Pane id="SelectLanguageUI">

		<!-- Skip if using the default! -->
		<Condition><![CDATA[  ucase(Property("SkipLocaleSelection")) <> "YES" and Property("DeploymentType")<>"REPLACE" and Property("DeploymentType")<>"CUSTOM" and Left(Property("ImageBuild"), 1) = "6" ]]> </Condition>
		<Initialization><![CDATA[ Locale_Initialization ]]> </Initialization>
		<Validation><![CDATA[  Locale_Validation ]]></Validation>

		<Body>
		<![CDATA[
            
           <!-- Use the H1 Style for titles at the top of the page -->
           <H1>Locale Selection<H1>
           
           <p>What is your Locale: <label class=ErrMsg id=LocaleReq>* Required (MISSING)</label></br>
            <SELECT NAME="UserLocaleAndLang" SIZE="7" class=WideEdit>
            </SELECT>
           </p>

           <p>Keyboard: <label class=ErrMsg id=KeyBoardReq>* Required (MISSING)</label></br>
            <SELECT NAME="KeyboardLocale" SIZE="7" class=WideEdit>
            </SELECT>
           </p>
           
           <INPUT type="hidden" Name="UserLocale" value="" />
           <INPUT type="hidden" Name="UILanguage" value="" />
           
        ]]>

		</Body>

	</Pane>


	<Pane id="TimeZone">
		<Condition><![CDATA[   UCase(Property("SkipTimeZone"))<>"YES" and Property("DeploymentType")<>"REPLACE" and Property("DeploymentType")<>"CUSTOM"]]> </Condition>
		<Initialization><![CDATA[ TimeZone_Initialization ]]> </Initialization>
		<Validation><![CDATA[  TimeZoneName.Value <> "" and TimeZone.Value <> "" ]]></Validation>

		<Body>
		<![CDATA[
          
           <!-- Use the H1 Style for titles at the top of the page -->
           <H1>Set the Time Zone<H1>
           
           <select id=TimeZoneList size=15 language=VBScript onchange="SetTimeZoneValue" class=wideedit>
           
           <!--           
           The following is a static table of Time Zones supported by Windows XP/2003 and Windows Vista
           TimeZone Format:           
               <option value="TimeZoneNumber;TimeZoneName[;TimeZoneName_Alternate][;TimeZoneDescription_Alternate]">TimeZoneDescription</option>
           Where:
               TimeZoneNumber - The Time Zone number used in Windows XP/2003 (Whistler) Unattend.txt files. [GuiUnattended] TimeZone
               TimeZoneName - The Time Zone Name used in Windows Vista (Longhorn) unattend.xml files. <TimeZone> entries
               TimeZoneName_Alternate - This is the alternate Name used in Windows XP documentation. (Used to Match Time Zone only).
               TimeZoneDescription_Alternate - This is the Alternate Description used in Windows XP Documentation. (Used to Match Time Zone only).
               TimeZoneDescription - This is the value displayed in the dialog box.
           -->
           
                <option value="90;Greenwich Standard Time">(GMT) Casablanca, Monrovia</option>
                <option value="85;GMT Standard Time">(GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London</option>
                <option value="110;W. Europe Standard Time">(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna</option>
                <option value="95;Central Europe Standard Time">(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague</option>
                <option value="105;Romance Standard Time">(GMT+01:00) Brussels, Copenhagen, Madrid, Paris</option>
                <option value="100;Central European Standard Time">(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb</option>
                <option value="113;W. Central Africa Standard Time">(GMT+01:00) West Central Africa</option>
                <option value="130;GTB Standard Time">(GMT+02:00) Athens, Istanbul, Minsk</option>
                <option value="115;E. Europe Standard Time">(GMT+02:00) Bucharest</option>
                <option value="120;Egypt Standard Time">(GMT+02:00) Cairo</option>
                <option value="140;South Africa Standard Time">(GMT+02:00) Harare, Pretoria</option>
                <option value="125;FLE Standard Time;(GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius">(GMT+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius</option>
                <option value="135;Israel Standard Time">(GMT+02:00) Jerusalem</option>
                <option value="158;Arabic Standard Time">(GMT+03:00) Baghdad</option>
                <option value="150;Arab Standard Time">(GMT+03:00) Kuwait, Riyadh</option>
                <option value="145;Russian Standard Time">(GMT+03:00) Moscow, St. Petersburg, Volgograd</option>
                <option value="155;E. Africa Standard Time">(GMT+03:00) Nairobi</option>
                <option value="160;Iran Standard Time">(GMT+03:30) Tehran</option>
                <option value="165;Arabian Standard Time">(GMT+04:00) Abu Dhabi, Muscat</option>
                <option value="170;Caucasus Standard Time">(GMT+04:00) Baku, Tbilisi, Yerevan</option>
                <option value="175;Afghanistan Standard Time;Transitional Islamic State of Afghanistan Standard Time">(GMT+04:30) Kabul</option>
                <option value="180;Ekaterinburg Standard Time">(GMT+05:00) Ekaterinburg</option>
                <option value="185;West Asia Standard Time">(GMT+05:00) Islamabad, Karachi, Tashkent</option>
                <option value="190;India Standard Time">(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi</option>
                <option value="193;Nepal Standard Time">(GMT+05:45) Kathmandu</option>
                <option value="201;N. Central Asia Standard Time">(GMT+06:00) Almaty, Novosibirsk</option>
                <option value="195;Central Asia Standard Time">(GMT+06:00) Astana, Dhaka</option>
                <option value="200;Sri Lanka Standard Time">(GMT+06:00) Sri Jayawardenepura</option>
                <option value="203;Myanmar Standard Time">(GMT+06:30) Yangon (Rangoon)</option>
                <option value="205;SE Asia Standard Time;S.E. Asia Standard Time">(GMT+07:00) Bangkok, Hanoi, Jakarta</option>
                <option value="207;North Asia Standard Time">(GMT+07:00) Krasnoyarsk</option>
                <option value="210;China Standard Time">(GMT+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi</option>
                <option value="227;North Asia East Standard Time;(GMT+08:00) Irkutsk, Ulan Bator">(GMT+08:00) Irkutsk, Ulaanbaatar</option>
                <option value="215;Singapore Standard Time">(GMT+08:00) Kuala Lumpur, Singapore</option>
                <option value="225;W. Australia Standard Time">(GMT+08:00) Perth</option>
                <option value="220;Taipei Standard Time">(GMT+08:00) Taipei</option>
                <option value="235;Tokyo Standard Time">(GMT+09:00) Osaka, Sapporo, Tokyo</option>
                <option value="230;Korea Standard Time">(GMT+09:00) Seoul</option>
                <option value="240;Yakutsk Standard Time">(GMT+09:00) Yakutsk</option>
                <option value="250;Cen. Australia Standard Time">(GMT+09:30) Adelaide</option>
                <option value="245;AUS Central Standard Time;A.U.S. Central Standard Time">(GMT+09:30) Darwin</option>
                <option value="260;E. Australia Standard Time">(GMT+10:00) Brisbane</option>
                <option value="255;AUS Eastern Standard Time;A.U.S. Eastern Standard Time">(GMT+10:00) Canberra, Melbourne, Sydney</option>
                <option value="275;West Pacific Standard Time">(GMT+10:00) Guam, Port Moresby</option>
                <option value="265;Tasmania Standard Time">(GMT+10:00) Hobart</option>
                <option value="270;Vladivostok Standard Time">(GMT+10:00) Vladivostok</option>
                <option value="280;Central Pacific Standard Time">(GMT+11:00) Magadan, Solomon Islands, New Caledonia</option>
                <option value="290;New Zealand Standard Time">(GMT+12:00) Auckland, Wellington</option>
                <option value="285;Fiji Islands Standard Time">(GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands</option>
                <option value="300;Tonga Standard Time">(GMT+13:00) Nuku'alofa</option>
                <option value="80;Azores Standard Time">(GMT-01:00) Azores</option>
                <option value="83;Cape Verde Standard Time">(GMT-01:00) Cape Verde Islands</option>
                <option value="75;Mid-Atlantic Standard Time">(GMT-02:00) Mid-Atlantic</option>
                <option value="65;E. South America Standard Time">(GMT-03:00) Brasilia</option>
                <option value="70;SA Eastern Standard Time;S.A. Eastern Standard Time">(GMT-03:00) Buenos Aires, Georgetown</option>
                <option value="73;Greenland Standard Time">(GMT-03:00) Greenland</option>
                <option value="60;Newfoundland Standard Time;Newfoundland and Labrador Standard Time">(GMT-03:30) Newfoundland and Labrador</option>
                <option value="50;Atlantic Standard Time">(GMT-04:00) Atlantic Time (Canada)</option>
                <option value="55;SA Western Standard Time;S.A. Western Standard Time">(GMT-04:00) Caracas, La Paz</option>
                <option value="56;Pacific SA Standard Time;Pacific S.A. Standard Time">(GMT-04:00) Santiago</option>
                <option value="45;SA Pacific Standard Time;S.A. Pacific Standard Time">(GMT-05:00) Bogota, Lima, Quito</option>
                <option value="35;Eastern Standard Time">(GMT-05:00) Eastern Time (US and Canada)</option>
                <option value="40;US Eastern Standard Time;U.S. Eastern Standard Time">(GMT-05:00) Indiana (East)</option>
                <option value="33;Central America Standard Time">(GMT-06:00) Central America</option>
                <option value="20;Central Standard Time">(GMT-06:00) Central Time (US and Canada)</option>
                <option value="30;Mexico Standard Time">(GMT-06:00) Guadalajara, Mexico City, Monterrey</option>
                <option value="25;Canada Central Standard Time">(GMT-06:00) Saskatchewan</option>
                <option value="15;US Mountain Standard Time;U.S. Mountain Standard Time">(GMT-07:00) Arizona</option>
                <option value="13;Mexico Standard Time 2">(GMT-07:00) Chihuahua, La Paz, Mazatlan</option>
                <option value="10;Mountain Standard Time">(GMT-07:00) Mountain Time (US and Canada)</option>
                <option value="4;Pacific Standard Time">(GMT-08:00) Pacific Time (US and Canada); Tijuana</option>
                <option value="3;Alaskan Standard Time">(GMT-09:00) Alaska</option>
                <option value="2;Hawaiian Standard Time">(GMT-10:00) Hawaii</option>
                <option value="1;Samoa Standard Time">(GMT-11:00) Midway Island, Samoa</option>
                <option value="0;Dateline Standard Time">(GMT-12:00) International Date Line West</option>
           
           </select>
           
           <input type=hidden Name=TimeZone /> <!-- XP Style TimeZone PST = 004 -->
           <input type=hidden Name=TimeZoneName />  <!-- Vista Style TimeZone PST = "Pacific Standard Time" -->

        ]]>

		</Body>

	</Pane>
    

	<Pane id="ApplicationSelection">
		<Condition><![CDATA[UCase(Property("DeploymentType"))<>"REPLACE" ]]></Condition>
		<Condition><![CDATA[UCase(Property("SkipAppsOnUpgrade"))<>"YES" or ucase(Property("DeploymentType"))<>"UPGRADE" ]]></Condition>
		<Condition><![CDATA[ IsThereAtLeastOneApplicationPresent ]]></Condition>
		<Condition><![CDATA[UCase(Property("SkipApplications"))<>"YES" ]]></Condition>
		<Body>
		<![CDATA[
      <H1>Select one or more applications to install.</H1>
      
      <div class=DynamicListBox style="height: expression( GetDynamicListBoxSize(this) );">       
      <table id="ImageList" datasrc="#images" width="100%" border=0 cellSpacing=0 language=vbscript onreadystatechange=ReadyInitializeApplicationList>
         <tr valign=top class="DynamicListBoxRow"
             onmouseover="javascript:this.className = 'DynamicListBoxRow-over';" 
             onmouseout="javascript:this.className = 'DynamicListBoxRow';" >
            <td class=DynamicListBoxElement width="0px">
               <input type=CheckBox language=vbscript onPropertyChange="AppItemChange" >
               <input type=hidden Name=Applications disabled datafld="guid" />
            </td>
            <td language=vbscript onclick="ClickChildCheckBox" class=DynamicListBoxElement width="100%">
               <div>
                  <span Name="AppName" datafld="NamePrefix" dataformatas="HTML"></Span>
                  <Label datafld="FullName" class="Larger" ></Label>
                  <Label datafld="Comments" dataformatas="HTML"></Label>
               </div>            
            </td>
      </table>
      </div>
      
      <xml id="images"></xml>

      <!-- We require at least one Disabled input box of the name Applications to ensure the values are picked up as an array. -->
      <input type=hidden Name=Applications disabled value="" /> 
			]]>
		</Body>
		<Initialization><![CDATA[InitializeApplicationList]]></Initialization>
	</Pane>


	<Pane id="AdministratorPassword">
		<Condition><![CDATA[UCase(Property("SkipAdminPassword"))<>"YES" and UCase(Property("DeploymentType"))<>"REPLACE" and Property("DeploymentType")<>"CUSTOM"]]></Condition>
		<Body>
		<![CDATA[
      <H1>Administrator Password.</H1>
      
      
Administrator Password: <br/>
<input type=password id="Password1" name="AdminPassword"  size=20 language=vbscript onchange=ValidatePassword onpropertychange=ValidatePassword>
<label class=ErrMsg For=Password1>* Required (MISSING)</label></br>

Please confirm Administrator Password: <br/>
<input type=password id="Password2" size=20 language=vbscript onchange=ValidatePassword onpropertychange=ValidatePassword>
<label id=NonMatchPassword class=ErrMsg>ERROR! Passwords do not match!</label></br>
</p>
      
			]]>
		</Body>
		<Initialization><![CDATA[ Password2.Value = Password1.Value ]]></Initialization>
		<Validation><![CDATA[ValidatePassword]]></Validation>
	</Pane>


	<Pane id="CaptureImage">
		<Condition><![CDATA[ucase(Property("SkipCapture"))="NO" and Property("DeploymentType") = "NEWCOMPUTER" and Property("JoinDomain") = "" ]]></Condition>
		<Body>
		<![CDATA[
	<H1>Specify whether to capture an image.</H1>
	<table>
    
	<tr>
		<td>
			<input type=radio name="DoCapture" id="CaptureRadio1" checked Value="YES" language=vbscript onclick=ValidateCapture  AccessKey=A>
		</td>
		<td>
			<Label class="Larger" for=CaptureRadio1 language=vbscript >C<u class=larger>a</u>pture an image of this reference computer.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div>Specify the UNC path where the image should be stored and the file name to use.</div>
			<br>
			<div><u>L</u>ocation:  <label class=ErrMsg for=ComputerBackupLocation>* Required (MISSING)</label></div>
                        <div><label class=ErrMsg id="InvalidCaptureLocation">ERROR: Unable to connect to UNC path.</label></div>
			<input type=text name="ComputerBackupLocation" id="ComputerBackupLocation" size=65 disabled language=vbscript onchange=ValidateCaptureLocation onpropertychange=ValidateCapture AccessKey=L> 
			<br>
			<div>File name:  <label class=ErrMsg for=BackupFile>* Required (MISSING)</label></div>
			<input type=text name="BackupFile" id="BackupFile" size=65 disabled language=vbscript onpropertychange=ValidateCapture > 
			
		</td>
	</tr>

	<tr><td colspan=2>&nbsp;</td></tr>

	<tr>
		<td>
			<input type=radio name="DoCapture" id="CaptureRadio2" value="PREPARE" language=vbscript onclick=ValidateCapture  AccessKey=P>
		</td>
		<td>
			<Label class="Larger" for=CaptureRadio2 language=vbscript ><u class=larger>P</u>repare to capture the machine</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div>Copy the needed Sysprep files to the proper location, but do not perform the actual capture or initiate Sysprep (useful when using the SMS 2003 OS Deployment Feature Pack's Image Capture Wizard).</div>
		</td>
	</tr>

	<tr><td colspan=2>&nbsp;</td></tr>

	<tr>
		<td>
			<input type=radio name="DoCapture" id="CaptureRadio3" value="NO" language=vbscript onclick=ValidateCapture  AccessKey=O>
		</td>
		<td>
			<Label class="Larger" for=CaptureRadio3 language=vbscript >Do n<u class=larger>o</u>t capture an image of this computer.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div>This is a normal deployment, so an image does not need to be captured.</div>
		</td>
	</tr>
    
	</table>
		]]>
		</Body>
		<Validation><![CDATA[ValidateCapture]]></Validation>
		<Initialization><![CDATA[InitializeCapture]]></Initialization>
	</Pane>

	<Pane id="BitLocker">
		<Condition><![CDATA[Property("DeploymentType")<>"REPLACE" and Property("DeploymentType")<>"CUSTOM" and UCase(Property("SkipBitLocker")) <> "YES" and UCase(Property("DoCapture")) <> "YES" and UCase(Property("DoCapture")) <> "PREPARE" and Left(Property("ImageBuild"), 1) = "6" and (UCase(Property("ImageFlags")) = "ENTERPRISE" or UCase(Property("ImageFlags")) = "ULTIMATE") ]]></Condition>		
		<Body><![CDATA[

	<H1>Specify the BitLocker configuration.</H1>

	<p>BitLocker can be enabled to provide an additional level of data security for this computer.</p>

	<table>
    
	<tr>
		<td>
			<input type=radio name="BdeGroup" id="BDERadio1" checked language=vbscript onclick=ValidateBDE  AccessKey=A >
		</td>
		<td>
			<Label class="Larger" for=BDERadio1 language=vbscript ><u class=larger>D</u>o not enable BitLocker for this computer.</Label>
		</td>
	</tr>

	<tr><td colspan=2>&nbsp;</td></tr>

	<tr>
		<td>
			<input type=radio name="BdeGroup" id="BDERadio2" language=vbscript onclick=ValidateBDE  AccessKey=T >
		</td>
		<td>
			<Label class="Larger" for=BDERadio2 language=vbscript >Enable BitLocker.</Label>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<table>
			<tr>
				<td>
					<input type=radio name="BdeMode" id="BdeModeRadio1" checked language=vbscript onclick=ValidateBDE  AccessKey=M >
				</td>
				<td>
					<Label language=vbscript >Enable BitLocker using TP<u>M</u> only.</Label>
				</td>
			</tr>
			<tr>
				<td>
					<input type=radio name="BdeMode" id="BdeModeRadio4" language=vbscript onclick=ValidateBDE  AccessKey=P >
				</td>
				<td>
					<Label for=BdeModeRadio4 language=vbscript >Enable BitLocker using TPM and Pin.</Label>
				</td>
				<td>
				<input type=text size=20 maxlength=20 name="BdePin" id="BdePin" language=vbscript onclick=ValidateBDE  AccessKey=P >
				</td>				
				</td>
			</tr>						
			<tr>
				<td>
					<input type=radio name="BdeMode" id="BdeModeRadio2" language=vbscript onclick=ValidateBDE  AccessKey=S >
				</td>
				<td>
					<Label language=vbscript >Enable BitLocker using TPM and a <u>s</u>tartup key.</Label>
				</td>
				<td>
					<select name="BdeModeSelect1" onblur=ValidateBDE>
						<option>First Available</option>
						<option value="A:">A:</option>
						<option value="B:">B:</option>
						<option value="C:">C:</option>
						<option value="D:">D:</option>
						<option value="E:">E:</option>
						<option value="F:">F:</option>
						<option value="G:">G:</option>
						<option value="H:">H:</option>
						<option value="I:">I:</option>
						<option value="J:">J:</option>
						<option value="K:">K:</option>
						<option value="L:">L:</option>
						<option value="M:">M:</option>
						<option value="N:">N:</option>
						<option value="O:">O:</option>
						<option value="P:">P:</option>
						<option value="Q:">Q:</option>
						<option value="R:">R:</option>
						<option value="S:">S:</option>
						<option value="T:">T:</option>
						<option value="U:">U:</option>
						<option value="V:">V:</option>
						<option value="W:">W:</option>
						<option value="X:">X:</option>
						<option value="Y:">Y:</option>
						<option value="Z:">Z:</option>
					</select>	
				</td>
				
			</tr>
			
			<tr>
				<td>
					<input type=radio name="BdeMode" id="BdeModeRadio3" language=vbscript onclick=ValidateBDE  AccessKey=P >
				</td>
				<td>
					<Label for=BdeModeRadio3 language=vbscript >Enable BitLocker using only an External Startup Key.</Label>
				</td>
				<td>
					<select name="BdeModeSelect2" onblur=ValidateBDE>
						<option>First Available</option>
						<option value="A:">A:</option>
						<option value="B:">B:</option>
						<option value="C:">C:</option>
						<option value="D:">D:</option>
						<option value="E:">E:</option>
						<option value="F:">F:</option>
						<option value="G:">G:</option>
						<option value="H:">H:</option>
						<option value="I:">I:</option>
						<option value="J:">J:</option>
						<option value="K:">K:</option>
						<option value="L:">L:</option>
						<option value="M:">M:</option>
						<option value="N:">N:</option>
						<option value="O:">O:</option>
						<option value="P:">P:</option>
						<option value="Q:">Q:</option>
						<option value="R:">R:</option>
						<option value="S:">S:</option>
						<option value="T:">T:</option>
						<option value="U:">U:</option>
						<option value="V:">V:</option>
						<option value="W:">W:</option>
						<option value="X:">X:</option>
						<option value="Y:">Y:</option>
						<option value="Z:">Z:</option>
					</select>	
				</td>				
				</td>
			</tr>
			</table>

		</td>
	</tr>

	<tr><td>&nbsp;</td></tr>

	<tr>
		<td>&nbsp;</td>
		<td>
			<Label language=vbscript >Choose where to store the Recovery Key.</Label>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td>
			<input type=radio name="AD" id="ADButton1" language=vbscript onclick=ValidateBDE  AccessKey=M > In Active Directory
		</td>
	</tr>
		<tr>
		<td>&nbsp;</td>	
		<td>
			<input type=radio name="AD" id="ADButton2" checked language=vbscript onclick=ValidateBDE  AccessKey=M > Do not create a recovery key. (Not recommended)
		</td>		
	</tr>	

	<tr><td>&nbsp;</td></tr>

		<tr>
		<td>&nbsp;</td>	
		<td>
			<input type=checkbox name="WaitForEncryption" language=vbscript onclick=ValidateBDE  AccessKey=M > Wait for Bitlocker Encryption to complete on all drives before continuing.
		</td>		
	</tr>	

	
	</table>

	<input type=hidden id="BdeInstall" name="BdeInstall">
	<input type=hidden id="BdeKeyLocation" name="BdeKeyLocation">
	<input type=hidden id="OSDBitLockerWaitForEncryption" name="OSDBitLockerWaitForEncryption">
	<input type=hidden id="BdeRecoveryPassword" name="BdeRecoveryPassword">
	<input type=hidden id="BdeInstallSuppress" name="BdeInstallSuppress">

	
			]]>
		</Body>
		<Initialization><![CDATA[InitializeBDE]]></Initialization>
		<Initialization><![CDATA[ValidateBDE]]></Initialization>
		<Validation><![CDATA[ValidateBDE]]></Validation>

	</Pane>

	<Pane id="Credentials">
		<Condition><![CDATA[((UserID_isDirty = TRUE or Property("UserID")="") or (Property("UserPassword")="") or (Property("UserDomain") = Property("ComputerName"))) and Property("DeploymentMethod") <> "MEDIA"]]></Condition>
		<Body>
		<![CDATA[
	<H1>Specify credentials for connecting to network shares.</H1>

<div class="larger">Credentials:<div><label class=ErrMsg id=InvalidCredentials>* Invalid credentials</label>
<table>
	<tr>
		<td width="100px"><u >U</u>ser Name:</td>
		<td>
			<input type=text id=username name="UserID" size=37 language=vbscript onpropertychange=ValidateCredentials AccessKey=U>
			<label class=ErrMsg for=username>* Required (MISSING)</label>
		</td>
	</tr>
	<tr>
		<td><u>P</u>assword:</td>
		<td>
			<input type=password id=userpassword name="UserPassword" size=37 language=vbscript onpropertychange=ValidateCredentials AccessKey=P>
			<label class=ErrMsg for=userpassword>* Required (MISSING)</label>
		</td>
	</tr>
	<tr>
		<td><u>D</u>omain:</td>
		<td>
			<input type=text id=userdomain name="UserDomain" size=37 language=vbscript onpropertychange=ValidateCredentials AccessKey=D>
			<label class=ErrMsg for=userdomain>* Required (MISSING)</label>
		</td>
	</tr>
</table>

			]]>
		</Body>
		<Initialization><![CDATA[ If Property("UserDomain") = Property("ComputerName") then userdomain.Value = "" ]]></Initialization>
		<Initialization><![CDATA[ ParseAllWarningLabelsEx userdomain, username ]]></Initialization>
		<Validation><![CDATA[ValidateCredentialsEx]]></Validation>
	</Pane>


	<Pane id="Ready">
		<Condition><![CDATA[ucase(Property("SkipSummary")) <> "YES"]]></Condition>
		<ButtonNext>
			<Label><![CDATA[<button accesskey=G id=buttonNext language=vbscript onclick=ButtonNextClick>Be<U>g</U>in</button>]]></Label> 
		</ButtonNext>
		<Body>
	<![CDATA[	
		<H1>Ready to begin.</H1>
		<p>Using the information you provided, the deployment can now begin.</p>

		<p>
		 <input id=MoreInfo src=plusicon.gif type=image onclick="javascript:HideUnHideCmdWindow(optionalWindow1);" />     
		 <label onclick="javascript:MoreInfo.click();" >Details ...</label></br>
		 <span id=optionalWindow1 style="display=none;" class=LightColoredBox>Details Here!</span>
		</p>
      
	]]>
		</Body>
		<Initialization><![CDATA[PrepareFinalScreen]]></Initialization>
	</Pane>

</Wizard>
